package com.cloud.api.file.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "sys_file")
public class SysFile implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    private String url;
    private Long size;
    private String filename;
    private String originalFilename;
    private String basePath;
    private String path;
    private String ext;
    private String contentType;
    private String platform;
    private String thUrl;
    private String thFilename;
    private Long thSize;
    private String thContentType;
    private String objectId;
    private String objectType;
    private String metadata;
    private String userMetadata;
    private String thMetadata;
    private String thUserMetadata;
    private String attr;
    private Object fileAcl;
    private Object thFileAcl;
    private String hashInfo;
    private String uploadId;
    private Integer uploadStatus;
    private Date createTime;
    private Long createUserId;
    /**
     * 删除标识  0 临时文件 1 正式文件 2 删除文件
     */
    @TableField(value = "file_status")
    private Integer fileStstus;

    private static final long serialVersionUID = 1L;
}
